package wmh.day0109.constants;

/**
 * 形成状态枚举类
 */
public enum LotteryStatus {
    ONE(0,"未持照"),
    TWO(1,"已持照");

    private int code;
    private String value;
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    LotteryStatus() {
    }

    LotteryStatus(int code, String value) {
        this.code = code;
        this.value = value;
    }
    public static LotteryStatus getScheduleStatusByCode(int code) {
        switch (code) {
            case 0:
                return ONE;
            case 1:
                return TWO;
            default:
                return ONE;
        }
    }


}

